package com.ruoyi.pg.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 指标点对象 pg_indicator
 * 
 * @author ruoyi
 * @date 2025-06-07
 */
public class Indicator extends PgTreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 指标ID */
    private Long indicatorId;

    /** 指标编号 */
    @Excel(name = "指标编号")
    private String indicatorCode;

    /** 指标名称 */
    @Excel(name = "指标名称")
    private String indicatorName;

    /** 指标描述 */
    @Excel(name = "指标描述")
    private String description;

    /** 内容类型(0:附件 1:数据表) */
    @Excel(name = "内容类型(0:附件 1:数据表)")
    private String contentType;

    /** 文件存储路径 */
    @Excel(name = "文件存储路径")
    private String filePath;

    /** 状态(0正常 1停用) */
    @Excel(name = "状态(0正常 1停用)")
    private String status;

    /** 排序编号 */
    @Excel(name = "排序编号")
    private int orderNum;

    /** 删除标志 */
    private String delFlag;

    private String parentName;

    private List<Indicator> children = new ArrayList<Indicator>();;

    public void setIndicatorId(Long indicatorId) 
    {
        this.indicatorId = indicatorId;
    }

    public Long getIndicatorId() 
    {
        return indicatorId;
    }

    public void setIndicatorCode(String indicatorCode) 
    {
        this.indicatorCode = indicatorCode;
    }

    public String getIndicatorCode() 
    {
        return indicatorCode;
    }

    public void setIndicatorName(String indicatorName) 
    {
        this.indicatorName = indicatorName;
    }

    public String getIndicatorName() 
    {
        return indicatorName;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }

    public void setFilePath(String filePath) 
    {
        this.filePath = filePath;
    }

    public String getFilePath() 
    {
        return filePath;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String getParentName() {
        return parentName;
    }

    @Override
    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public List<Indicator> getChildren() {
        return children;
    }

    public void setChildren(List<?> children) {
        this.children = (List<Indicator>) children;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("indicatorId", getIndicatorId())
            .append("parentId", getParentId())
            .append("ancestors", getAncestors())
            .append("indicatorCode", getIndicatorCode())
            .append("indicatorName", getIndicatorName())
            .append("description", getDescription())
            .append("orderNum", getOrderNum())
            .append("contentType", getContentType())
            .append("filePath", getFilePath())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
